import Layout from '@/layout'

export default {
  path: '/employees',
  component: Layout,
  children: [
    { name: 'employees',
      path: '',
      component: () => import('@/views/employees/employees.vue'),
      meta: { title: '员工管理', icon: 'people' }
    },
    {
      // 员工的详情
      //       path: 'detail', //如果是查询参数,那么路径不变
      path: 'detail/:id', // 路由传参需要在路由接受配置
      name: 'detail',
      component: () => import('@/views/employees/detail.vue'),
      hidden: true // 不在左侧菜单显示
      // meta: { title: '工资', icon: 'money' }
      // meta: { title: '社保', icon: 'table' }
      // meta: { title: '考勤', icon: 'skill' }
      // meta: { title: '审批', icon: 'tree-table' }
    }
  ]
}
